package cn.exrick.xboot.modules.transport.baoxian.dto;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Data
@XmlRootElement(name = "Policylist")
@XmlAccessorType(XmlAccessType.FIELD)
public class PolicyQueryResponse {

    @XmlElement(name = "Policy")
    private Policy policy;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Policy {
        // 投保单/保单信息
        @XmlElement(name = "PrimaryFlag")
        private String primaryFlag;
        @XmlElement(name = "PolicyNo")
        private String policyNo;
        @XmlElement(name = "PolicyNoLong")
        private String policyNoLong;

        // 投保人信息
        @XmlElement(name = "HolderName")
        private String holderName;
        @XmlElement(name = "HolderAddr")
        private String holderAddr;
        @XmlElement(name = "HolderDocument")
        private String holderDocumentType;

        // 被保险人信息
        @XmlElement(name = "RecognizeeName")
        private String recognizeeName;
        @XmlElement(name = "RecognizeeAddr")
        private String recognizeeAddr;

        // 其他字段...
        @XmlElement(name = "Status")
        private String status;
        @XmlElement(name = "ErrorMsg")
        private String errorMsg;
    }

}
